home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Installation Tools & Overlays 2002 May
/
SGI IRIX Installation Tools & Overlays 2002 May - Disc 3.iso
/
relnotes
/
license_dev
/
ch4.z
/
ch4
Wrap
Text File
|
2002-04-11
|
2KB
|
133 lines
- 1 -
5. _M_u_l_t_i_p_l_e__S_y_s_t_e_m__I_D_s
5.1 _M_u_l_t_i_p_l_e__S_y_s_t_e_m__I_D_s
The Origin product line (eg. Origin 2000) has an expandable
modular architecture, and systems with more than one CPU
module will have multiple system IDs. The FLEXlm licensing
library in this release of license_dev has been modified to
support multiple system ids.
On a system with multiple system IDs, if a license can be
found for one of the system IDs returned by the system when
the application is started, the license is considered valid
and the application is enabled.
5.2 _G_e_t_t_i_n_g__t_h_e__M_u_l_t_i_p_l_e__S_y_s_t_e_m__I_D_s
Note that whether a system has a single or multiple system
IDs is transparent to the actual licensed application. The
only time a user or developer needs to be concerned with the
number of system ids a system has is when the user is
providing the system id information to the vendor and when
the vendor issues a license for its product.
Both sysinfo(1) and lmhostid(1) will return the system IDs
of all of the modules on the system. Note that on single
system id systems, the command _s_y_s_i_n_f_o -_s is used to get the
system id. On modular systems that can have multiple system
ids, the command _s_y_s_i_n_f_o and _s_y_s_i_n_f_o -_v will return a list
of system ids.
Programmatically, the list of system ids can be acquired
using the syssgi(2) system call with the argument
SGI_NUM_MODULES and SGI_MODULE_INFO. The following is a
source code example.
- 2 -
#include <sys/syssgi.h>
#include <sys/systeminfo.h>
int rc;
int num_sysids;
int index;
unsigned long sysid;
module_info_t mod_info;
/* get the number of system IDs */
num_sysids = syssgi(SGI_NUM_MODULES);
/* get the first sysid */
index = 0;
rc = syssgi(SGI_MODULE_INFO, index, &mod_info, sizeof(mod_info);
sysid = modeinfo.serial_num;